﻿
@{
    ViewData["Title"] = "Tour";
}
<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2>Bootstrap Tour</h2>
        <ol class="breadcrumb">
            <li class="breadcrumb-item">
                <a href="@Url.Action("Dashboard_1", "Dashboards")">Home</a>
            </li>
            <li class="breadcrumb-item">
                <a>Miscellaneous</a>
            </li>
            <li class="active breadcrumb-item">
                <strong>Bootstrap Tour</strong>
            </li>
        </ol>
    </div>
    <div class="col-lg-2">

    </div>
</div>

<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="row">
        <div class="col-md-6">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>Bootstrap Tour</h5>
                </div>

                <div class="ibox-content">
                    <p>
                        Quick and easy way to build your product tours with Bootstrap Popovers.
                    </p>

                    <div class=" m-t-sm">

                        <a href="#" class="btn btn-primary startTour"><i class="fa fa-play"></i> Start Tour</a>

                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-6">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>Tour steps</h5>
                </div>
                <div class="ibox-content text-center" id="step1">
                    <div class="p-sm">
                        <h3>Step 1</h3>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-6">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>Tour steps</h5>
                </div>
                <div class="ibox-content text-center" id="step2">
                    <div class="p-sm">
                        <h3>Step 2</h3>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-6">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>Tour steps</h5>
                </div>
                <div class="ibox-content text-center" id="step3">
                    <div class="p-sm">
                        <h3>Step 3</h3>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>Tour steps</h5>
                </div>
                <div class="ibox-content text-center" id="step4">
                    <div class="p-xl">
                        <h3>Step 4</h3>
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>


@section Styles {
    <environment names="Development,Staging,Production">
        <link rel="stylesheet" href="~/lib/bootstrap-tour/build/css/bootstrap-tour.min.css" />
    </environment>
}

@section Scripts {
    <environment names="Development,Staging,Production">
        <script src="~/lib/bootstrap-tour/build/js/bootstrap-tour.min.js"></script>
    </environment>

    <script type="text/javascript">
        $(document).ready(function (){

        // Instance the tour
        var tour = new Tour({
            framework: "bootstrap4",
            steps: [{

                    element: "#step1",
                    title: "Title of my step",
                    content: "Introduce new users to your product by walking them through it step by step.",
                    placement: "top",
                    backdrop: true,
                },
                {
                    element: "#step2",
                    title: "Title of my step",
                    content: "Content of my step",
                    placement: "top",
                    backdrop: true,
                    backdropContainer: '#wrapper',
                    onShown: function (tour){
                        $('body').addClass('tour-open')
                    },
                    onHidden: function (tour){
                        $('body').removeClass('tour-close')
                    }
                },
                {
                    element: "#step3",
                    title: "Title of my step",
                    content: "Introduce new users to your product by walking them through it step by step.",
                    placement: "bottom"
                },
                {
                    element: "#step4",
                    title: "Title of my step",
                    content: "Introduce new users to your product by walking them through it step by step.",
                    placement: "top"
                }
            ]});

        $('.startTour').click(function(){
            tour.restart();

        })

    });

    </script>
}
